﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wctlProyectoListar.ascx.vb" Inherits="Controls_wctlProyectoListar" %>
<%@ Register assembly="DevExpress.Web.v10.1" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>

  <script type="text/javascript">
function OnRowClick(e) {
	//Clear the text selection
	_aspxClearSelection();
	//Unselect all rows
	dgvProyectos._selectAllRowsOnPage(false);
	//Select the row
	dgvProyectos.SelectRow(e.visibleIndex, true);
}
</script>
<link href="../styles/base.css"rel="stylesheet" type="text/css" /> 
  
        <table style=" font-family:Georgia; width: 1179px;">
            <tr>
                <td style="width: 600px; height: 328px" valign="top">
<asp:Button ID="btnSeleccionarPersonal" runat="server" CssClass="button2" OnClick="btnSeleccionarPersonal_Click"
    Text="Seleccionar personal11" Width="168px" />
                    <asp:Button ID="Button1" runat="server" Height="23px" 
                        Text="Listado Registro Horas" Width="163px" />
                    <asp:Button ID="Button2" runat="server" Height="23px" Text="Listar Gasto" 
                        Width="162px" />
                    <asp:Button ID="Button3" runat="server" Height="23px" Text="Listar Actividad" 
                        Width="109px" />
                    <br />
                    <asp:ObjectDataSource ID="DsrcProyecto" runat="server" 
                        SelectMethod="fuBLListarProyecto" 
                        TypeName="BLGestionProyecto.BLGPProyecto" >
                    </asp:ObjectDataSource>
                    <dx:ASPxGridView ID="dgvProyectos" runat="server" AutoGenerateColumns="False" 
                        Caption="Cartera de Proyectos" Width="831px"  Font-Bold="False" 
                        DataSourceID="DsrcProyecto" ClientInstanceName="dgvProyectos" 
                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                        KeyFieldName="prycodProyecto">
                        <Columns>
<dx:GridViewDataTextColumn FieldName="prycodProyecto" Width="15px" Caption="Id" VisibleIndex="0"></dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Los" FieldName="losNombre" VisibleIndex="1" 
                                Width="25px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="SubLos" FieldName="sublosNombre" 
                                VisibleIndex="2" Width="25px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Socio" FieldName="Socio" 
                                VisibleIndex="3" Width="50px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Gerente" FieldName="Gerente" 
                                VisibleIndex="4" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Encargo" FieldName="prynumEncargo" 
                                VisibleIndex="5" Width="50px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Cliente" FieldName="prycodCliente" 
                                VisibleIndex="6" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Fecha Inicio" FieldName="pryfecInicioProy" 
                                VisibleIndex="7" Width="80px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Situación" FieldName="Estado" 
                                VisibleIndex="8" Width="100px">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowFilterRow="True" />
                        <Styles cssfilepath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            csspostfix="PlasticBlue">
                            <Header Font-Bold="True" imagespacing="10px" sortingimagespacing="10px"></Header>
                            <AlternatingRow  Enabled="True"></AlternatingRow>
                        </Styles>
                        <SettingsPager ShowDefaultImages="False">
                            <AllButton Text="All">
                            </AllButton>
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick(e); }" />
                        <StylesEditors>
                            <CalendarHeader Spacing="11px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <br />
        <span class="footerText">
                    <asp:Label ID="lblmensaje" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label>
        </span>
                </td>
            </tr>
        </table>
    